package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperWalletSetting implements Serializable {
    private Integer id;

    /**
     * 提币withdraw；规集collect；矿工miner
     */
    private String type;

    /**
     * trx余额
     */
    private BigDecimal trxAmount;

    private String address;

    /**
     * 规集金额
     */
    private BigDecimal collectNum;

    private Date createTime;

    private Date updateTime;

    /**
     * 币总
     */
    private String token;

    /**
     * usdt余额
     */
    private BigDecimal amount;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 提币withdraw；规集collect；矿工miner
     */
    public String getType() {
        return type;
    }

    /**
     * 提币withdraw；规集collect；矿工miner
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * trx余额
     */
    public BigDecimal getTrxAmount() {
        return trxAmount;
    }

    /**
     * trx余额
     */
    public void setTrxAmount(BigDecimal trxAmount) {
        this.trxAmount = trxAmount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 规集金额
     */
    public BigDecimal getCollectNum() {
        return collectNum;
    }

    /**
     * 规集金额
     */
    public void setCollectNum(BigDecimal collectNum) {
        this.collectNum = collectNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 币总
     */
    public String getToken() {
        return token;
    }

    /**
     * 币总
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * usdt余额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * usdt余额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", trxAmount=").append(trxAmount);
        sb.append(", address=").append(address);
        sb.append(", collectNum=").append(collectNum);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", token=").append(token);
        sb.append(", amount=").append(amount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWalletSetting other = (SuperWalletSetting) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getTrxAmount() == null ? other.getTrxAmount() == null : this.getTrxAmount().equals(other.getTrxAmount()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getCollectNum() == null ? other.getCollectNum() == null : this.getCollectNum().equals(other.getCollectNum()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getTrxAmount() == null) ? 0 : getTrxAmount().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getCollectNum() == null) ? 0 : getCollectNum().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        return result;
    }
}